﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<title>个人信息</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${ctx }/plugin/bootstrap/3.3.5/css/bootstrap.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${ctx }/plugin/jquery/1.11.3/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="${ctx }/plugin/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="${ctx }/js/user.js"></script>

</head>
<body>
	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<div class="page-header">
					<h1>
						B2C网上商城 <small>Online Shopping Mall</small>
					</h1>
				</div>
				<!-- 轮播图 -->
				<%@ include file="carousel.jsp" %>
				<hr />
				<!-- 导航栏 -->
				<jsp:include page="nav.jsp"></jsp:include>
			</div>
		</div>
		<hr>
		<div class="row clearfix">
			<!-- 商品分类 -->
			<%@ include file="category.jsp" %>
			
			<div class="col-md-10 column">
				<div class="panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title">${user.name}的个人信息</h3>
					</div>
					<div class="panel-body">
						<div class="list-group">
							<div class="list-group-item">
								<span class="glyphicon glyphicon-user"></span> <span>姓名：${user.name}</span>
							</div>
							<div class="list-group-item">
								<span class="glyphicon glyphicon-envelope"></span> <span>邮箱：${user.email}</span>
							</div>
							<div class="list-group-item">
								<span class="glyphicon glyphicon-map-marker"></span> <span>地址：${user.address}</span>
							</div>
							<div class="list-group-item">
								<span>邮编：${user.postcode}</span>
							</div>
							<div class="list-group-item">
								<span>家庭电话：${user.homephone}</span>
							</div>
							<div class="list-group-item">
								<span class="glyphicon glyphicon-phone"></span> <span>移动电话：${user.cellphone}</span>
							</div>
							<div class="list-group-item">
								<span>办公电话：${user.officephone}</span>
							</div>
							<div class="list-group-item">
								<a href="${ctx }/user/showUserInfo.do?id=${user.id}&edit=edit" class="btn btn-info">完善信息</a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>